.top-bar {
    color: #FFF;
    position: relative;
    height: $topbar-small;
    background-color: $black;
    z-index: 100;
    
    
    .tb-logo {
        float: left;
        display: block;
        height: $topbar-small;
        width: 64px;
        margin: 0;
    }
    
    .left {
        background-color: $red;
        a {
            display: block;
            position: relative;
            padding: 0 20px;
            height: $topbar-small;
            line-height: $topbar-small;
            color: #FFF;
            .red-line {
                position: absolute;
                bottom: 17px;
                height: 5px;
                width: 20px;
                background-color: transparent;
                @include transition(0.3s);
            }
            &:hover {
                color: $black;
            }
        }
        .drop {
            .list{
                display: none;
            }
            ul {
                background-color: #FFF;
                padding: 10px 0;
            }
            li a {
                height: 30px;
                line-height: 30px;
                font-size: $fz-normal;
                color: $red;
                &:hover {
                    color: $black;
                }
            }
        }
    }
    
    .lang {
        height: 40px;
        line-height: 40px;
        a {
            color: #FFF;
            font-size: $fz-small;
            margin-left: 10px;
            &.current {
                text-decoration: underline;
            }
        }
    }
    
    .right {
        .lang {
            display: none;
        }
    }
    
    .only-for-mobile {
        padding: 0 20px;
        font-size: $fz-normal;
        .full {
            color: #FFF;
            display: block;
            height: 40px;
            line-height: 40px;
        }
        h5 {
            font-size: 16px;
            font-weight: $fw-semibold;
            margin: 0;
        }
        p {
            line-height: 2;
        }
        .come {
            padding: 10px 0;
        }
        .contact {
            padding: 10px 0;
        }
    }
}


.main-nav {
    position: fixed;
    top: $topbar-small;
    right: 0;
    bottom: 0;
    padding-bottom: 20px;
    width: 280px;
    margin-right: -280px;
    background-color: $red-dark;
    overflow-y: auto;
    z-index: 1000;
    @include transition(0.3s);
}

#toggle-menu {
    float: right;
    display: block;
    width: 50px;
    height: $topbar-small;
    line-height: $topbar-small;
    text-align: center;
    color: #FFF;
    cursor: pointer;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0,0,0,0.7);
}

body.menu-on{
    overflow: hidden;
    .main-nav {
        margin-right: 0;
    }
    #toggle-menu i{
        &:before {
            content: '\f00d';
        }
    }
}

body.tn-alt {
    .main-nav {
        top: 0;
    }
    main {
        position: relative;
        left: 0;
        @include transition(0.3s);
    }
    &.menu-on {
        main {
            left: -280px;
        }
    }
}

@include min-screen ($vw-medium) {
    .top-bar {
        height: $topbar-large;
        
        .tb-logo {
            height: $topbar-large;
            width: 80px;
            margin: 0 10px 0 0;
        }
        .left {
            float: left;
            background-color: transparent;
            a {
                display: inline-block;
                padding: 0 15px;
                height: $topbar-large;
                line-height: $topbar-large;
                font-size: $fz-normal;
                color: #FFF;
                vertical-align: top;
                &:hover {
                    color: #FFF;
                    .red-line {
                        background-color: $red;
                    }
                }
            }
            .drop {
                display: inline-block;
                .list {
                    display: block;
                    max-height: 0;
                    overflow: hidden;
                    @include transition(0.3s);
                }
                &:hover {
                    .list {
                        display: block;
                        max-height: 1000px;
                    }
                    .red-line {
                        background-color: $red;
                    }
                }
                ul {
                    background-color: #FFF;
                }
                li a {
                    color: $red;
                    &:hover {
                        color: $black;
                    }
                }
            }
        }
        
        .right {
            float: right;
            padding: 0 10px;
            .lang {
                display: inline-block;
                a {
                    color: #666;
                    font-size: $fz-small;
                    margin-left: 10px;
                    &.current {
                        text-decoration: none;
                        color: #FFF;
                    }
                }
            }
        }
        
        .only-for-mobile {
            display: none;
        }
    }
    .main-nav {
        position: static;
        top: auto;
        right: auto;
        bottom: auto;
        width: auto;
        margin-right: 0;
        background-color: transparent;
    }
    
    #toggle-menu {
        display: none;
    }
    
    body.menu-on{
        overflow: auto;
        .overlay{
            display: none !important;
        }
    }
    body.tn-alt {
        &.menu-on {
            main {
                left: 0;
            }
        }
    }
}